package com.leyou.common.domain;

import lombok.Data;

import java.util.List;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/04 12:04
 * @description:
 */
@Data
public class PageResult<T> {
	private Integer totalPage;
	private Long total;
	private List<T> items;
	public PageResult() {
	}

	public PageResult(Long totalRecord, List<T> brands) {
		this.total = totalRecord;
		this.items = brands;
	}

	public PageResult(Long totalRecord, Integer totalPage, List<T> brands) {
		this.total = totalRecord;
		this.totalPage = totalPage;
		this.items = brands;
	}
}
